package com.sxu.principles.demo2.improve;

/**
 * 里氏替换原则
 * 错误案例改进
 */

// 长方形类
public class Rectangle implements Quadrilateral{
    private double length;
    private double width;

    @Override
    public double getLength() {
        return length;
    }

    @Override
    public double getWidth() {
        return width;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public void setWidth(double width) {
        this.width = width;
    }
}
